Learn R Programming

NMVANOVA (version 1.1.0)

Block Design: Block Design

Description

Due to 'Rstudio's' status as open source software, we believe it will be utilized frequently for future data analysis by users whom lack formal training or experience with 'R'. The block design is a linear modeling which accounts for blocking with a one-way analysis of variance without downloading multiple libraries or packages. Users can easily manipulate the data block, n-value, k-value, and factor to optimize analysis for any data set.

Usage

BlockD(r,k,f,n)

Arguments

r

The dataset or source you want to examine

k

The parameter for the model to help account for blocking

f

The factor,subject, and/or category that is being examined.

n

The sample size number

Value

Anova analysis of the model with a TukeyHSD with diagnostic plots

Details

This function has a built in model were we create the treatment response with also including the blocking of the data(response~treatment) and (response~treatment+blocking). This allows you to see if the baseline model is the best or if blocking truly indeed helps. Also, this gives you diagnostics residual plots, and a TUKEY HSD so you can go past the anova table.

Examples

Run this code
# NOT RUN {
House<-as.character(c(1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4))
life<-c(100:115)
data<-cbind.data.frame(House,life)
data(BostonHousing)
r=data$life
k=4
f=c("Person A", "Person B", "Person C", "Person D")
n=4

BlockD(r,k,f,n)



# }

Run the code above in your browser using DataLab